{template nheader.html}
<link href="{THEME_PATH}admin/global/css/admin_order_detail.css" rel="stylesheet"  />
<div class="portlet mylistbody">

    <div class="portlet-title">
        <div class="caption">
            <span class="caption-subject font-green bold uppercase"><!-- {$name} --><span style='font-family: "FontAwesome";'></span> 基本信息</span>
        </div>
    </div>

    <div class="portlet-body">
        <div class="table-scrollable">
            <table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr>
                    <th align="center" width="16%">{fc_lang('订单时间')}</th>
                    <th align="center" width="16%">{fc_lang('订单编号')}</th>
                    <th align="center"  width="16%">{fc_lang('订单状态')}</th>
                    <th align="center"  width="16%">{fc_lang('用户账号')}</th>
                    <th align="center"  width="16%">{fc_lang('支付方式')}</th>
                    <!-- <th align="center"  width="8%">{fc_lang('订单金额')}</th> -->
                    <th align="center"  width="16%">{fc_lang('订单来源')}</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{date('Y-m-d H:i:s',$order.addtime)}</td>
                    <td>{$order.order_no}</td>
                    <td>{$resmsg}</td>
                    <td>{$order.mobile}</td>
                    <!-- <td>{$order.totalprice}</td> -->
                    <td>
                        {if $order.pay_type == 0}
                        未支付
                        {else if $order.pay_type == 1}
                        支付宝
                        {else if $order.pay_type == 2}
                        微信
                        {else if $order.pay_type == 3}
                        公司转账
                        {else if $order.pay_type == 4}
                        其他支付
                        {/if}
                    </td>
                    <td>{$order.source}</td>
                </tr>
                </tbody>
            </table>

        </div>
    </div>

    <div class="portlet-title">
        <div class="caption">
            <span class="caption-subject font-green bold uppercase"><span style='font-family: "FontAwesome";'></span> 课程信息</span>
        </div>
    </div>
    <div class="portlet-body">
        <div class="table-scrollable">
            <table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr>
                    <th align="center" width="8%">{fc_lang('课程图片')}</th>
                    <th align="center" width="12%">{fc_lang('课程名称')}</th>
                    <th align="center"  width="8%">{fc_lang('单价/课程编号')}</th>
                    <th align="center" width="8%">{fc_lang('阶段/科目')}</th>
                    <th align="center"  width="8%">{fc_lang('数量')}</th>
                    <th align="center"  width="8%">{fc_lang('库存')}</th>
                    <th align="center"  width="12%">{fc_lang('小计')}</th>
                </tr>
                </thead>
                <tbody>
                {loop $course $t}
                <tr>
                    <td class="class-img">
                        <img width="68" height="68" src="{if !empty($order.course_url)}{$order.course_url}{else}/statics/default/../gw/img/demo-order-class.jpg{/if}" alt="" class="order-img-box">
                    </td>
                    <td class="class-name">
                        <div class="main-title">{if !empty($order.course_name)}{mb_substr($order.course_name,0,10,"utf-8")}{else}在线课程包{/if}</div>
                        <div class="sub-title">精品小班</div>
                    </td>
                    <td class="class-price-order">
                        <div class="price"><span>单价：</span><span>¥</span><span>{$t.price}</span></div>
                        <div class="class-order"><span>编号：</span><span>No</span><span>86577</span></div>
                    </td>
                    <td class="class-stage-subject">
                        <div class="stage"><span>阶段：</span><span>{$t.stage}</span></div>
                        <div class="subject"><span>科目：</span><span>{$t.subject}</span></div>
                    </td>
                    <td class="class-num">
                        <div class="num"><span>{$t.num}</span></div>
                    </td>
                    <td class="class-stock">
                        <div class="stock">库存</div>
                    </td>
                    <td class="class-totalprice">
                        <div class="price"><span>¥</span><span>{$t.totalprice}</span></div>
                    </td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
    </div>

    <div class="portlet-title">
        <div class="caption">
            <span class="caption-subject font-green bold uppercase"><span style='font-family: "FontAwesome";'></span> 费用信息</span>
        </div>
    </div>
    <div class="portlet-body">
        <div class="table-scrollable">
            <table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr>
                    <th align="center" width="25%">{fc_lang('课程费用合计')}</th>
                    <th align="center" width="25%">{fc_lang('折扣金额')}</th>
                    <th align="center" width="25%">{fc_lang('优惠券')}</th>
                    <th align="center" width="25%">{fc_lang('应付款金额')}</th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td>{$totalprice}</td>
                    <td>￥0</td>
                    <td>￥0</td>
                    <td><span>￥</span>{$totalprice}</td>

                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

{template nfooter.html}